stylecontext: Remove GTK_CSS_CHANGE_FORCE_INVALIDATE
authorBenjamin Otte <otte@redhat.com>
Wed, 20 Aug 2014 02:39:54 +0000 (04:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 20 Aug 2014 22:54:07 +0000 (00:54 +0200)
This was introduced as a hackish way in 3.6 to make font updates
propagate properly. But since then, font handling has been changed and
this flag is no longer necessary.

gtk/gtkcsstypesprivate.h
gtk/gtkstylecontext.c

index 88e52425c65f290030373c56091d48cc248b5354..c7f90387c45300fa8789df0b1492a4650f6024cf 100644 (file)
@@ -50,7 +50,6 @@ typedef enum { /*< skip >*/
   /* add more */
   GTK_CSS_CHANGE_SOURCE                   = (1 << 16),
   GTK_CSS_CHANGE_ANIMATE                  = (1 << 17),
-  GTK_CSS_CHANGE_FORCE_INVALIDATE         = (1 << 18),
 
   GTK_CSS_CHANGE_RESERVED_BIT             = (1 << 31) /* Used internally in gtkcssselector.c */
 } GtkCssChange;
index 98085570567ab2c2f0dd7897cb01676fa69748fe..93575e1c00ef79cccbd4fc5404bad5959cc530b4 100644 (file)
@@ -3106,19 +3106,8 @@ _gtk_style_context_validate (GtkStyleContext  *context,
       _gtk_bitmask_free (animation_changes);
     }
 
-  if (change & GTK_CSS_CHANGE_FORCE_INVALIDATE)
-    {
-      GtkBitmask *full = _gtk_bitmask_new ();
-      full = _gtk_bitmask_invert_range (full, 
-                                        0,
-                                        _gtk_css_style_property_get_n_properties ());
-      gtk_style_context_do_invalidate (context, full);
-      _gtk_bitmask_free (full);
-    }
-  else if (!_gtk_bitmask_is_empty (changes))
-    {
-      gtk_style_context_do_invalidate (context, changes);
-    }
+  if (!_gtk_bitmask_is_empty (changes))
+    gtk_style_context_do_invalidate (context, changes);
 
   change = _gtk_css_change_for_child (change);
   for (list = priv->children; list; list = list->next)